export interface INode<T> {
  element: T
  next: INode<T> | undefined
}

export class Node<T> implements INode<T> {
  element: T
  next: INode<T> | undefined

  constructor(element: T) {
    this.element = element
    this.next = undefined
  }
}
